/**
 * Created by ly on 2018/08/12.
 */
var hlFunctionUtil = (function () {
  var functionUtil = {
    // 节流函数
    delay:(function(){
        let timer = 0;
        return function(callback, ms) {
          clearTimeout(timer);
          timer = setTimeout(callback, ms);
        };
    }())
  }

  return functionUtil
}())
